package com.dms.modules.payment.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "alipay")
public class AlipayConfig {
    /**
     * 应用ID
     */
    private String appId;
    
    /**
     * 商户私钥
     */
    private String privateKey;
    
    /**
     * 支付宝公钥
     */
    private String publicKey;
    
    /**
     * 服务器异步通知页面路径
     */
    private String notifyUrl;
    
    /**
     * 页面跳转同步通知页面路径
     */
    private String returnUrl;
    
    /**
     * 支付宝网关
     */
    private String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";
    
    /**
     * 字符编码格式
     */
    private String charset = "utf-8";
    
    /**
     * 签名方式
     */
    private String signType = "RSA2";
} 